package com.usian.skill.controller;

import com.usian.skill.mq.MQSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: MQController
 * Author:   WGG
 * Date:    2022-12-2022/12/13-20:06
 * Version: 1.0
 * Description:
 */
@RestController
@RequestMapping("/mq")
public class MQController {
    @Autowired
    private MQSender mqSender;

    @RequestMapping("/send")
    public String sendMsg(){
        mqSender.sendMiaoShaMessage("hello,MQ");
        return "QBZ";
    }
}
